---------------------------
The Network Security Server
---------------------------

The security server is responsible for tracking license usage and processing queries submitted by protected applications. Up to ten IPX/SPX or NetBIOS servers can coexist per department; there is no limit on the number of concurrent Named Pipes servers.

NetSentinel provides the following security server programs:

Program		Description
NSRVDI		DOS IPX/SPX TSR server
NSRVDN		DOS NetBIOS TSR server
NSRVGX		Windows 32-bit IPS/SPX and NetBIOS server
NSSRVICE        Windows NT service for IPS/SPX and NetBIOS server
NSRVNI		NetWare NLM IPX/SPX server
NSRVOM		Multi-protocol OS/2 server

License Limits

Each active session managed by a security server is assigned a unique handle. Your application gets this handle when it first asks for access to a key. Every query the application sends must specify the assigned handle.

Multiple keys can be connected to different parallel ports on the same server. If the NetSentinelPro is used, multiple keys can be connected to the same port.

The network's concurrent license limit is the sum of the limits of all keys attached to all servers associated with a given department. If a user attempts to run a protected application and the first key checked has reached its limit, the software automatically checks the next key (on the same or another server) for an available license.

When a security server is initialized, it automatically checks each of its parallel ports to locate any NetSentinel keys. This check happens only on start-up. If you connect a new NetSentinel key to a security server, you must reload the server program to make that key available for use.

If a server with active clients is rebooted, those sessions are terminated. The next query sent to the server will return an error to the application. The NetSentinel does not automatically reconnect failed security sessions; your application must close the failed session and open another one.

NOTE:	To limit searching times, NetSentinel clients default to searching five servers per protocol. If there are more than five, a server may not be found by the client. Use the Set Rainbow Library Parameters API to increase the maximum number of servers.

Department Names

By default, security servers are named NETINEL followed by a number. The first server to come up on the network is NETINEL0, the next is NETINEL1, and so on. The name NETINEL is your default department name, and is used to determine which servers will support which clients. It is the application's responsibility, using the NetSentinel API, to specify a different department name if the default is not desired. The NetSentinel client library will access only those servers that share the same department.

By associating different department names with different organizations (for example, SALES and ADMIN), each department can manage its own set of servers and licenses. Applications installed in the SALES department cannot obtain licenses from an ADMIN server, and vice versa.

Running DOS Servers

A NetSentinel server must be running somewhere on your network in order for a protected application to run, unless that application is using local access mode.

To run a DOS server program:
1.	Copy the appropriate server program from your NetSentinel server directory to a workstation or network file server.
2.	Connect the NetSentinel key to a parallel port on that machine.
3.	Run the NetBIOS server (NSRVDN) or IPX/SPX server (NSRVDI) from the DOS command line. Table 8-1 lists all available command line options.

DOS or Windows applications can access any NetSentinel server, provided that the proper network protocol support is provided. If you run a DOS server on a Windows machine, it should be started before Windows is launched.

TABLE 8-1. DOS Server Command Line Options

OPTION			DESCRIPTION
/DN:<name>		Changes the server's department name from NETINEL to <name>.
			Clients must use the Set Rainbow Library Parameters API call to access servers with
			department names other than NETINEL.

/H:<nnn>		Sets the maximum number of licenses that can be in use at any one time on this server to <nnn>.
			The default is 150.
			Your effective license limit is the smaller of (1) the number you set here and (2) the sum
			of the limits of the keys connected to this server.
			Specifying a limit higher than what the attached keys support has no effect.
			Specifying a limit lower than what the attached keys support effectively disables some licenses.

/MS:<nnn>		Sets the maximum number of servers running in this server's department and using this
			server's protocol to <nnn>.
			<nnn> is a value from 1 to 10, and is used to determine server names.
			A value of 10, for example, causes servers to be named NETINEL1 through NETINEL5.

/N:<name>		Sets the name displayed by the monitor program for this server to <name>.
			The default is your computer's Ethernet address (NetBIOS) or IPX node number (NetWare).

/P			Overrides the server's use of BIOS parallel port table addresses and uses the standard values
			0x278, 0x378, and 0x3BC.
			This option is needed when the server is run on a machine where other software (such as
			PowerLAN) has zeroed out the BIOS table located in memory from 40:8 to 40:D.

/P:<port>		Overrides the server's use of BIOS parallel port table addresses and uses the hexadecimal
			address <port>.
			Up to three addresses may be specified.
			This option is needed when the server is run on a machine where other software (such as
			PowerLAN) has zeroed out the BIOS table located in memory from 40:8 to 40:D, and when a
			security key is located on a port configured for an I/O location other than 0x278, 0x378,
			or 0x3BC.
			For example, /p:278 /p:378 identifies parallel ports at I/O addresses 0x278 and 0x378.

/Q			Suppresses sign-on messages.

/R			Conditionally unloads a previous instance of the server from memory, if and only if
			there are no open security sessions.

/S:<nnn>		Sets the maximum number of sessions that can actively communicate with the server at one
			time to <nnn>.
			Half of the sessions are used to turn away clients.
			The default is 4 (two clients at a time).

/SL:<nnnn>		Sets the maximum number of sub-licenses expected to be open at any one time to <nnnn>.
			The default is 256.
			Applies to the NetSentinel-C only.

/ST			Enables strict license time-out enforcement.
			If this option is set, active licenses are immediately revoked and made available for reuse
			if no query is performed within the key's configured time-out interval.
			Subsequent use of the handle yields an error.
			By default, a timed-out license is revoked only if a handle is requested and no other
			license is available.

/U			Unconditionally unloads a previous instance of the server from memory, whether or not
			there are open security sessions.

/?			Displays available command line options.


Running the OS/2 Server

Under OS/2, a NetSentinel server must be running somewhere on your network in order for a protected application to run, unless that application is using local access mode. You can unload a security server by terminating the program in the same fashion as any other OS/2 application.

The OS/2 Sentinel-family device driver (OS2SNTNL.SYS) must be installed on the security server in order for the OS/2 security server or your protected application to run.

When you install the driver, you must specify its location in the server's CONFIG.SYS file. The file can reside in any directory as long as it is referenced correctly in CONFIG.SYS. Please convey this information to your customers.

To install the device driver and run the OS/2 server:
1.	Add a line to security server's CONFIG.SYS file that specifies DEVICE= and the full pathname of the OS2SNTNL.SYS file, plus any desired command line options. Table 8-2 lists available options.
2.	Reboot the computer.
3.	For IBM or Microsoft Named Pipes: Use the ACCESS CONTROL function in NET to share the pipe named \PIPE\deptname, where "deptname" is your server's department name. The default name is NETINEL. (If you are setting the system up for local access, you can skip this step.)
	For Novell Named Pipes: Install the OS/2 Requester. Make the security server a Named Pipes server, and make the protected application's workstation a Named Pipes client.
4.	Run the server program (NSRVOM) from the OS/2 command line, adding any options you desire. Table 8-3 describes available options.
5.	Wait (about a minute) for the "Server Initialization completed" message.

Once started, the server program appears as an icon on the screen. If desired, you can run the program with no visible indication on the screen, and no keyboard input/output. On the OS/2 command line or in the STARTUP.CMD file, type DETACH followed by the server program name and any desired options.

Table 8-2. OS/2 Device Driver Command Line Options

OPTION			DESCRIPTION
/A			Automatically interrogates all parallel ports to determine which use interrupts and which
			use DMA, and waits indefinitely until a port is idle before initiating a query in the appropriate
			transfer mode.
			This is equivalent to using the /P and /D options with retry counts of 0.

/D [LPT<x>,		Configures a parallel port for DMA-driven data transfer, and waits until the port is idle
<lvl>=<nnn>]...		before initiating a query.
			If an LPT<x> expression is used, only the specified parallel port will be accessed; otherwise,
			all ports will be affected.
			The driver will poll the port <nnn> times at arbitration level <lvl> before giving up and
			returning an error status.
			<nnn> is a value from 0 to 65535.
			A value of 0 causes the driver to wait indefinitely.
			You can mix /D and /P options on the same command line.
			The following example configures ports LPT1 and LPT2:
			 DEVICE=OS2SNTNL.SYS /D LPT1,5=1234 LPT2,7=5678

/P [LPT<x>]		Configures a parallel port for interrupt-driven data transfer, and waits until the port is
[=<nnn>]...		idle before initiating a query.
			If an LPT<x> expression is used, only the indicated parallel port will be accessed; otherwise,
			all ports will be affected.
			The driver will poll the port <nnn> times before giving up and returning an error status.
			<nnn> is a value from 0 to 65535.
			A value of 0 causes the driver to wait indefinitely; if a retry count is not specified, a
			value of 32000 is used.
			You can mix /D and /P options on the same command line.
			The following example configures ports LPT1 and LPT2:
			 DEVICE=OS2SNTNL.SYS /P LPT1=1234 LPT2=5678

/Q			Suppresses sign-on messages.


Table 8-3. OS/2 Server Command Line Options

OPTION			DESCRIPTION
/DN:<name>		Changes the server's department name from NETINEL to <name>.
			Clients must use the Set Rainbow Library Parameters API call to access servers with
			department names other than NETINEL.

/H:<nnn>		Sets the maximum number of licenses that can be in use at any one time on this server to <nnn>.
			The default is 150.
			Your effective license limit is the smaller of (1) the number you set here and (2) the sum
			of the limits of the keys connected to this server.
			Specifying a limit higher than what the attached keys support has no effect.
			Specifying a limit lower than what the attached keys support effectively disables some licenses.

/L:<type>:<dll>		Configures the server for a specific network operating system.
			By default, the server program looks for certain Dynamic Link Libraries (DLLs) to determine
			which system is installed.
			Use the /L option if you have multiple network operating systems installed and wish to control
			which is selected.
			Enter /L:1 for IBM LAN Server (ACSNETB.DLL), or /L:2 for Microsoft LAN Manager or Novell
			NetWare OS/2 Requester (NETAPI.DLL).
			If you want to specify the DLL to be used, enter the name after the number.
			For example, /L:1:ACSNEW.DLL loads the ACSNEW.DLL file and uses it as an IBM-type NetBIOS DLL.

/MS:<nnn>		Sets the maximum number of servers running in this server's department and using this server's
			protocol to <nnn>.
			<nnn> is a value from 1 to 10, and is used to determine server names.
			A value of 10, for example, causes servers to be named NETINEL0 through NETINEL9.

/N:<name>		Sets the name displayed by the monitor for this server to <name>.
			The default is your computer's Ethernet address (NetBIOS) or IPX node number (NetWare).

/Q			Suppresses sign-in messages.

/SL:<nnnn>		Sets the maximum number of sub-licenses expected to be open at any one time to <nnnn>.
			The default is 256.
			Applies to the NetSentinel-C only.

/SN:<nnn>		Sets the number of threads allocated for NetBIOS to <nnn>.
			In general, more threads provide better performance but require more memory.
			If you do not support NetBIOS, enter /SN:0.
			The default is 6.

/SP:<nnn>		Sets the number of threads allocated for Named Pipes to <nnn>.
			In general, more threads provide better performance but require more memory.
			If you do not support Named Pipes, enter /SP:0.
			The default is 6.

/ST			Enables strict license time-out enforcement. If this option is set, active licenses are
			immediately revoked and made available for reuse if no query is performed within the key's
			configured time-out interval.
			Subsequent use of the handle yields an error.
			By default, a timed-out license is revoked only if a handle is requested and no other
			license is available.

/?			Displays available command line options.


Running the NLM Server

A special version of the NetSentinel server (NSRVNI) is available for installation on Novell NetWare 386 file servers. This server runs as a NetWare oadable Module (NLM) that can be loaded and unloaded without rebooting the file server. The NetSentinel NLM server supports IPX/SPX only.

NSRVNI must be installed and loaded on every file server used as a NetSentinel security server. You can run the program from AUTOEXEC.NCF or from the system console.

To load the NetSentinel NLM server from the system console:
1.	Copy the server program (NSRVNI.NLM) to the file server.
2.	Connect the NetSentinel key to a parallel port on the file server.
3.	Load the server program from the command line by typing LOAD followed by the security server's full pathname and any desired command line options. For example, the following command loads a security server from the search path of the file server and sets the handle limit to 100.
	load nsrvni /h:100

To run the NetSentinel NLM automatically whenever the file server is booted:
1.	Copy the server program (NSRVNI.NLM) to the file server.
2.	Add a line to load the server program, including any desired options, to the file server's AUTOEXEC.NCF file.
3.	Connect the NetSentinel key to a parallel port on the file server.
4.	Reboot the file server.

Table 8-4. NLM Server Command Line Options

OPTION			DESCRIPTION
/DN:<name>		Changes the server's department name from NETINEL to <name>.
			Clients must use the Set Rainbow Library Parameters API call to access servers with department
			names other than NETINEL.

/H:<nnn>		Sets the maximum number of licenses that can be in use at any one time on this server to <nnn>.
			The default is 150.
			Your effective license limit is the smaller of (1) the number you set here and (2) the sum of
			the limits of the keys connected to this searver.
			Specifying a limit higher than what the attached keys support has no effect.
			Specifying a limit lower than what the attached keys support effectively disables some licenses.

/MS:<nnn>		Sets the maximum number of servers running in this server's department and using this server's
			protocol to <nnn>.
			<nnn> is a value from 1 to 10, and is used to determine server names.
			A value of 10, for example, causes servers to be named NETINEL0 through NETINEL9.

/N:<name>		Sets the name displayed by the monitor program for this server to <name>.
			The default is your computer's Ethernet address (NetBIOS) or IPX node number (NetWare).

/P			Overrides the server's use of BIOS parallel port table addresses and uses the standard values
			0x278, 0x378 and 0x3BC.
			This option is needed when the server is run on a machine where other software (such as
			PowerLAN) has zeroed out the BIOS table located in memory from 40:8 to 40:D.

/P:<port>		Overrides the server's use of BIOS parallel port table addresses and uses the hexadecimal
			address <port>.
			Up to three addresses may be specified.
			This option is needed when the server is run on a machine where other software (such as
			PowerLAN) has zeroed out the BIOS table located in memory from 40:8 to 40:D, and when a
			security key is located on a parallel port configured for an I/O location other than
			0x278, 0x378 or 0x3BC.
			For example, /p:278 /p:378 identifies parallel ports at I/O addresses 0x278 and 0x378.

/Q			Suppresses sign-on messages.

/S:<nnn>		Sets the maximum number of sessions that can actively communicate with the server at
			one time to <nnn>.
			Half of the sessions are used to turn away clients.
			The default is 4 (two clients at a time).

/SL:<nnnn>		Sets the maximum number of sub-licenses expected to be open at any one time to <nnnn>.
			The default is 256.
			Applies to the NetSentinel-C only.

/ST			Enables strict license time-out enforcement.
			If this option is set, active licenses are immediately revoked and made available for reuse
			if no query is performed within the key's configured time-out interval.
			Subsequent use of the handle yields an error.
			By default, a timed-out license is revoked only if a handle is requested and no other
			license is available.

/?			Displays available command line options.


Stopping and Restarting the NLM

Because the server is implemented as a NetWare Loadable Module (NLM), it can be loaded into memory (started) and unloaded from memory (stopped) without rebooting the file server. This gives the end user an easy way to restart the security server after connecting anew key.

Remember that clients cannot access the NetSentinel key is the server program is not running. This may cause protected applications to abort or to perform unusually. Always restart the security server as soon as possible.

To stop/restart the server program:
1.	At the command prompt, type unload followed by the server program's name. For example:
		unload nsrvni
	The NetSentinel NLM will tell you if there are any licenses in use, and will ask for confirmation before unloading.
2.	Connect the new NetSentinel key to the security server.
3.	To restart the server program, type load followed by the server program's full pathname and any desired command line options.

Service Advertising Protocol (SAP)

The NetSentinel server makes itself known to other stations on the network via Novell's Service Advertising Protocol (SAP). Using this protocol, each server that runs in a Novell network receives a unique SAP number that is used for all communication with that server. SAP numbers are assigned by Novell.

Pre-3.10 versions of the NetSentinel software assigned a different SAP number to the NetSentinel server than the one that is now in use. If you have IPX/SPX-based applications protected with an early release of NetSentinel software, please contact Rainbow Technologies' Technical Support Department for information on upgrading.

Running the Win32 Windows Server

For 32-bit Windows applications, a NetSentinel server must be running somewhere on your network in order for the protected application to run, unless that application is using local access mode.

the Win32 server (NSRVGX.EXE) supports both IPX/SPX and NWLINK protocols. Novell IPX/SPX client applications can communicate with the Win323 server if NWLINK protocol is present on the workstation where the server program is running. Note: SAP agent must be installed and active.

NetBIOS and NETBEUI protocols are also supported. The Win32 server supports whatever NetBIOS transports are installed under the NetBIOS interface. More than one NetBIOS may be present at the same time. The server supports Microsoft NETBEUI as well as NWLINK NetBIOS, which is inter-operable with Novell NetBIOS clients.

Before you can load the Win32 NetSentinel server, a system driver for access to the hardware key must be installed. Instructions for installing the Windows NT driver are provided after Table 8-5.

To run the Win32 server program:
1.	Copy NSRVGX.EXE from your NetSentinel server directory to a workstation or network file server.
2.	Connect the NetSentinel key to a parallel port on that machine.
3.	Start Windows.
4.	Launch NSRVGX.EXE from the Program Manager. Table 8-5 lists all available command line options.
5.	The server displays a copyright message as it loads. When loaded, the program appears as an icon on the display screen. If you want to view information about the server as it runs, maximize its icon.

To unload the Win32 NetSentinel server:
-	Close the program.

Table 8-5. Win32 Server Command Line Options

OPTION			DESCRIPTION
/DN:<name>		Changes the server's department name from NETINEL to <name>.
			Clients must use the Set Rainbow Library Paramenters API call to access servers with
			department names other than NETINEL.

/H:<nnn>		Sets the maximum number of licenses that can be in use at any one time on this server to <nnn>.
			The default is 150.
			Your effective license limit is the smaller of (1) the number you set here and (2) the sum of
			the limits of the keys connected to this server.
			Specifying a limit higher than what the attached keys support has no effect.
			Specifying a limit lower than what the attached keys support effectively disables some licenses.

/MS:<nnn>		Sets the maximum number of servers running in this server's department and using this server's
			protocol to <nnn>.
			The indicated value ranges from 1 to 10, and is used to determine the range of server names.
			A value of 10, for example, causes servers to be named NETINEL0 through NETINEL9.

/N:<name>		Sets the name displayed by the monitor for this server to <name>.
			The default is your computer's Ethernet address (NetBIOS) or IPX node number (NetWare).

/Q			Suppresses the copyright message when the server is being loaded.

/SL:<nnnn>		Defines the number of entries in the sub-license table.
			Appplies to the NetSentinel-C only.

/SN:<nnnn>		Sets the number of threads devoted to handling NetBIOS/NETBEUI clients to <nnnn>.
			Values range from 0 to 6; the default is 6.
			Specifying /SN:0 disables all NetBIOS/NETBEUI support.

/ST			Enables strict license time-out enforcement. If this option is set, active licenses are
			immediately revoked and made available for reuse if no query is performed within the key's
			configured time-out interval.
			Subsequent use of the handle yields an error.
			By default, a timed-out license is revoked only if a handle is requested and no other
			licenses are available.

/SW:<nnnn>		Sets the number of threads devoted to handling IPX/SPX (NWLINK) clients to <nnnn>.
			Values range from 0 to 6; the default is 6.
			Specifying /SW:0 disables all IPX/SPX (NWLINK) support.


Installing the Windows NT Driver

The Rainbow Sentinel Driver allows protected applications to communicate with the NetSentinel via the Windows NT operating system.

The system driver must also be installed on your end users' systems. For convenience, it is provided on a separate disk you can copy to ship to your customers.

The Rianbow Sentinel Driver is installed through the Windows NT Control Panel. If you are running INSTALL, the Control Panel is accessed automatically.

When the driver is installed, it must be given information about each parallel port on the system. Usually, this occurs automatically--you do not have to enter any port informatoin. You will need to manually configure a port only if a port is not detected or has incorrect configuration information.

For step-by-step instructions for installing the Sentinel Driver, refer to the SENTINEL.DOC file on the driver installation disk. This is a Microsoft Word file that you can pass on to your customers or merge into your own user manuals.

Rainbow Technologies provides the Rainbow Sentinel Driver to its developers who are given the right to distribute copies of it to their customers. Please instruct your end users to contact you directly with any questions.

Support for Multiple Servers

If required, multiple NetSentinel keys can be used to provide a desired license limit. For example, a limit of 30 can be provided by an NS-25 key and an NS-5 key, or by three NS-10 keys.

Multiple NetSentinel-C keys with the same family code can not be connected to the same parallel port. If more than one NetSentinel-C key is used for licensing, each key must be connected to a different security server or to different parallel ports on the same server. Multiple NetSentinelPro keys can be connected to the same port. In all cases, the security server automatically checks all keys when looking for an available license.

Having multiple security servers (and multiple NetSentinel keys) reduces the possibility that a single system failure will preclude all use of an application.

For example, assume a customer purchases a site license agreement for 50 users. If all 50 users are controlled by a single secrutiy server and that computer fails, no one will be able to use the protected application until the key is moved to another security server. If two security servers are used, each with an NS-25 key, failure of one server will still leave 25 users with uninterrupted access to the application.